<@master template="master/master-p2p"  title="菜单管理" appendCss="css.bootstrap">
<@css href="/js/public/ztree/css/zTreeStyle/zTreeStyle.css"/>
<div class="row" style="opacity: 1;">
	<div id="resoList" style="display:none;">${reso}</div>
	<div class="col-lg-12">
        <div class="detailsBox">
            <h3><p class="fr"><a class="edit btn_blue" id="save_menu">保存</a></p><i class="jtIco"></i>菜单管理</h3>
                <div class="main-box-body clearfix mt10">
                    <div class="col-sm-4">
                        <div class="col_list">
                            <div>菜单列表</div>
                            <div class="mt10 clearfix">
                                <ul id="treeDiv" class="ztree"></ul>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-6">
                        <div>
                            <div class="ml20">编辑菜单</div>
                            <div class="mt10 clearfix">
                                <form id="menu_edit" role="form" class="form-horizontal action-ajax-form" method="POST">
                                    <input type="hidden" id="menu_id" name="id" value=""/>
									 <div class="formGroup">
                                        <span class=" control-label" for="description">菜单名称</span>
                                          <input type="text"  id="resourceName" name="resourceName" class="form-control"/>
                                    </div>
                                    <div class="formGroup">
                                        <span class="control-label" for="name">菜单code</span>
                                            <input type="text"  id="resourceCode" name="resourceCode" class="form-control"/>
                                    </div>
                                    <div class="formGroup">
                                        <span class="control-label" for="name">菜单描述</span>
                                            <input type="text"  id="description" name="description" class="form-control"/>
                                    </div>
                                    <div class="formGroup">
                                        <span class="control-label" for="parentName">上级菜单</span>
                                            <input type="text" id="parentName" class="form-control" readonly/>
                                            <input type="hidden" id="parentId" name="parentId" class="form-control"/>
                                    </div>
                                    <div class="formGroup">
                                        <span class="control-label" for="resourceType">菜单类型</span>
                                           <select class="form-control" name="resourceType" id="resourceType">
                                                <option value="1">菜单</option>
                                                <option value="2">权限</option>
                                            </select>
                                    </div>
                                    <div class="formGroup">
                                        <span class="control-label" for="resourceType">默认</span>
                                           <select class="form-control" name="resourceDefault" id="resourceDefault">
                                                <option value="Y">是</option>
                                                <option value="N" selected>否</option>
                                            </select>
                                    </div>
                                    <div class="formGroup">
                                        <span class="control-label" for="resourceUrl">菜单URL</span>
                                         <input type="text" name="resourceUrl" id="resourceUrl" class="form-control"/>
                                    </div>
                                    <div class="formGroup">
                                        <span class=" control-label" for="sort">排序</span>
                                         <input type="text" name="sort" id="sort" class="form-control"/>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</@master>
<@js src="/js/public/ztree/js/jquery.ztree.core.min.js;/js/public/ztree/js/jquery.ztree.excheck.min.js;/js/public/ztree/js/jquery.ztree.exedit.min.js;/js/p2p/sys/common/treeMenu.js;/js/p2p/sys/permission/resource.js"/><@jsRender/>